HAL PWR Types

HAL PWR Types

group PWR_Exported_Types

Enums

enum hal_pwr_wakeup_pin_polarity_t

HAL PWR wakeup pin polarity enumeration definition

Values:

enumerator HAL_PWR_WAKEUP_PIN_POLARITY_LOW

Wakeup pin polarity low Wakeup pin low polarity

enumerator HAL_PWR_WAKEUP_PIN_POLARITY_HIGH

Wakeup pin polarity high Wakeup pin high polarity

enum hal_pwr_wakeup_pin_pull_t

HAL PWR wakeup pin pull configuration enumeration definition

Values:

enumerator HAL_PWR_WAKEUP_PIN_PULL_NO

Configure Wake-Up pin in no pull Wakeup pin no pull

enumerator HAL_PWR_WAKEUP_PIN_PULL_UP

Configure Wake-Up pin in pull Up Wakeup pin pull up

enumerator HAL_PWR_WAKEUP_PIN_PULL_DOWN

Configure Wake-Up pin in pull Down Wakeup pin pull down

enum hal_pwr_wakeup_pin_status_t

HAL PWR wakeup pin status enumeration definition

Values:

enumerator HAL_PWR_WAKEUP_PIN_DISABLED

Wakeup pin disabled

enumerator HAL_PWR_WAKEUP_PIN_ENABLED

Wakeup pin enabled

enum hal_pwr_rtc_domain_wrp_status_t

HAL PWR RTC domain write protection status enumeration definition

Values:

enumerator HAL_PWR_RTC_DOMAIN_WRP_DISABLED

RTC domain write protection disabled

enumerator HAL_PWR_RTC_DOMAIN_WRP_ENABLED

RTC domain write protection enabled

enum hal_pwr_low_pwr_mode_entry_t

HAL PWR low power mode entry request enumeration definition

Values:

enumerator HAL_PWR_LOW_PWR_MODE_WFE

Low power mode wait for event request

enumerator HAL_PWR_LOW_PWR_MODE_WFI

Low power mode wait for interrupt request

enum hal_pwr_stop_mode_t

HAL PWR stop mode enumeration definition

Values:

enumerator HAL_PWR_STOP0_MODE

STOP0 mode Stop 0 mode

enumerator HAL_PWR_STOP1_MODE

0x00000001 STOP1 mode Stop 1 mode

enum hal_pwr_system_mode_t

HAL PWR system power mode enumeration definition

Values:

enumerator HAL_PWR_SYSTEM_RUN_MODE

System was in Run mode

enumerator HAL_PWR_SYSTEM_STOP0_MODE

STOP0 mode System was in Stop 0 mode

enumerator HAL_PWR_SYSTEM_STOP1_MODE

0x00000001 STOP1 mode System was in Stop 1 mode

enumerator HAL_PWR_SYSTEM_STANDBY_MODE

0x00000002 STANDBY mode System was in Standby mode

enum hal_pwr_core_sleep_mode_t

HAL PWR core sleep enumeration definition

Values:

enumerator HAL_PWR_CORE_SLEEP

Core sleep mode

enumerator HAL_PWR_CORE_DEEP_SLEEP

Core deep sleep mode

enum hal_pwr_core_sleep_on_exit_status_t

HAL PWR core sleep enumeration definition

Values:

enumerator HAL_PWR_CORE_SLEEP_ON_EXIT_DISABLED

PWR Core sleep on exit disabled

enumerator HAL_PWR_CORE_SLEEP_ON_EXIT_ENABLED

PWR Core sleep on exit enabled

enum hal_pwr_core_sev_on_pending_status_t

HAL PWR core send event on pending status enumeration definition

Values:

enumerator HAL_PWR_CORE_SEV_ON_PENDING_DISABLED

Core send event on pending disabled

enumerator HAL_PWR_CORE_SEV_ON_PENDING_ENABLED

Core send event on pending enabled

enum hal_pwr_pvd_status_t

HAL PWR programmable voltage detector status enumeration definition

Values:

enumerator HAL_PWR_PVD_DISABLED

PWR PVD disabled

enumerator HAL_PWR_PVD_ENABLED

PWR PVD enabled

enum hal_pwr_pvd_out_t

HAL PWR programmable voltage detector output enumeration definition

Values:

enumerator HAL_PWR_PVD_OUT_EQ_HIGH_THR

VDD equal to or higher than programmable voltage detector threshold

enumerator HAL_PWR_PVD_OUT_LOW_THR

VDD lower than programmable voltage detector threshold

enum hal_pwr_memory_retention_t

HAL PWR memory retention selection enumeration definition

Values:

enumerator HAL_PWR_MEMORY_RETENTION_SRAM1_STOP

SRAM1 memory retention in stop mode

enumerator HAL_PWR_MEMORY_RETENTION_SRAM2_STOP

SRAM2 memory retention in stop mode

enum hal_pwr_memory_retention_status_t

HAL PWR memory retention status enumeration definition

Values:

enumerator HAL_PWR_MEMORY_RETENTION_DISABLED

Memory retention in stop mode disabled

enumerator HAL_PWR_MEMORY_RETENTION_ENABLED

Memory retention in stop mode enabled

enum hal_pwr_memory_page_retention_status_t

HAL PWR memory page retention status enumeration definition

Values:

enumerator HAL_PWR_MEMORY_PAGE_RETENTION_DISABLED

Memory page retention in stop mode disabled

enumerator HAL_PWR_MEMORY_PAGE_RETENTION_ENABLED

Memory page retention in stop mode enabled

enum hal_pwr_flash_low_pwr_mode_status_t

HAL PWR FLASH memory low power mode status enumeration definition

Values:

enumerator HAL_PWR_FLASH_LOW_PWR_MODE_DISABLED

PWR flash memory low power mode disabled

enumerator HAL_PWR_FLASH_LOW_PWR_MODE_ENABLED

PWR flash memory low power mode enabled

enum hal_pwr_io_retention_t

HAL PWR IO retention selection enumeration definition

Values:

enumerator HAL_PWR_IO_RETENTION_JTAGIO

0x00010000 IO retention enable for JTAG I/Os JTAGIO retention in Standby Mode PWR JTAGIO retention enabled

enumerator HAL_PWR_IO_RETENTION_GPIO

0x00000001 IO retention enable GPIO retention in Standby Mode PWR GPIO retention enabled

enumerator HAL_PWR_IO_RETENTION_ALL

All IO retention in Standby Mode PWR both JTAGIO and GPIO retention enabled

enum hal_pwr_io_retention_status_t

HAL PWR IO retention configuration status enumeration definition

Values:

enumerator HAL_PWR_IO_RETENTION_DISABLED

IO retention mode disabled

enumerator HAL_PWR_IO_RETENTION_ENABLED

IO retention mode enabled

enum hal_pwr_priv_attr_t

HAL PWR privilege attribute enumeration definition

Values:

enumerator HAL_PWR_NPRIV

Non-privileged attribute Non-privileged attribute

enumerator HAL_PWR_PRIV

Privileged attribute Privileged attribute

struct hal_pwr_wakeup_pin_config_t
#include <stm32c5xx_hal_pwr.h>

HAL PWR wakeup pin configuration structure definition

Public Members

hal_pwr_wakeup_pin_polarity_t polarity

Wakeup pin polarity

hal_pwr_wakeup_pin_pull_t pull

Wakeup pin pull